From: Claudio Cambra Date: Thu, 28 Nov 2024 09:58:41 +0000 (+0800) Subject: Replace QWebSocket::error with errorOccurred X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~2^2~173^2~9 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4f2223b582a93f0771026368668073bf6b7756d9;p=nextcloud-desktop.git Replace QWebSocket::error with errorOccurred Signed-off-by: Claudio Cambra --- diff --git a/src/libsync/pushnotifications.cpp b/src/libsync/pushnotifications.cpp index 89ca8221b..6bfad9d62 100644 --- a/src/libsync/pushnotifications.cpp +++ b/src/libsync/pushnotifications.cpp @@ -30,7 +30,7 @@ PushNotifications::PushNotifications(Account *account, QObject *parent) , _account(account) , _webSocket(new QWebSocket(QString(), QWebSocketProtocol::VersionLatest, this)) { - connect(_webSocket, QOverload::of(&QWebSocket::error), this, &PushNotifications::onWebSocketError); + connect(_webSocket, QOverload::of(&QWebSocket::errorOccurred), this, &PushNotifications::onWebSocketError); connect(_webSocket, &QWebSocket::sslErrors, this, &PushNotifications::onWebSocketSslErrors); connect(_webSocket, &QWebSocket::connected, this, &PushNotifications::onWebSocketConnected); connect(_webSocket, &QWebSocket::disconnected, this, &PushNotifications::onWebSocketDisconnected); @@ -76,7 +76,7 @@ void PushNotifications::closeWebSocket() _reconnectTimer->stop(); } - disconnect(_webSocket, QOverload::of(&QWebSocket::error), this, &PushNotifications::onWebSocketError); + disconnect(_webSocket, QOverload::of(&QWebSocket::errorOccurred), this, &PushNotifications::onWebSocketError); disconnect(_webSocket, &QWebSocket::sslErrors, this, &PushNotifications::onWebSocketSslErrors); _webSocket->close(); @@ -174,7 +174,7 @@ void PushNotifications::openWebSocket() const auto webSocketUrl = capabilities.pushNotificationsWebSocketUrl(); qCInfo(lcPushNotifications) << "Open connection to websocket on" << webSocketUrl << "for account" << _account->url(); - connect(_webSocket, QOverload::of(&QWebSocket::error), this, &PushNotifications::onWebSocketError); + connect(_webSocket, QOverload::of(&QWebSocket::errorOccurred), this, &PushNotifications::onWebSocketError); connect(_webSocket, &QWebSocket::sslErrors, this, &PushNotifications::onWebSocketSslErrors); _webSocket->open(webSocketUrl); }